﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PerfumeShopManagement.DAL
{
    public class DalFactory
    {
        private static DalAccount dalAccount;
        private static DalCategory dalCategory;
        private static DalExportCheck dalExportCheck;
        private static DalImportCheck dalImportCheck;
        private static DalProduct dalProduct;
        private static DalRepositoryHistory dalRepositoryHistory;
	
        public static DalAccount AccountDAL
        {
            get {
                if (dalAccount == null)
                    dalAccount = new DalAccount();
                return dalAccount;
            }
        }

        public static DalCategory CategoryDAL
        {
            get {
                if (dalCategory == null)
                    dalCategory = new DalCategory();
                return dalCategory;
            }
        }

        public static DalExportCheck ExportCheckDAL
        {
            get {
                if (dalExportCheck == null)
                    dalExportCheck = new DalExportCheck();
                return dalExportCheck;
            }
        }

        public static DalImportCheck ImportCheckDAL
        {
            get {
                if (dalImportCheck == null)
                    dalImportCheck = new DalImportCheck();
                return dalImportCheck;
            }
        }

        public static DalProduct ProductDAL
        {
            get
            {
                if (dalProduct == null)
                    dalProduct = new DalProduct();
                return dalProduct;
            }
        }

        public static DalRepositoryHistory RepositoryHistoryDAL
        {
            get
            {
                if (dalRepositoryHistory == null)
                    dalRepositoryHistory = new DalRepositoryHistory();
                return dalRepositoryHistory;
            }
        }
    }
}
